package com.qingke.Qiximybatis.mapper;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.qingke.Qiximybatis.sqlclass.MyUser;

//update insert delete 返回的是整数
public interface MyUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MyUser user);

    MyUser insertSelective(MyUser record);

    MyUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MyUser record);

    int updateByPrimaryKey(MyUser record);
    
    List<MyUser> getAllUsers(SqlSession session) ;
    
    MyUser getphone(String phone);
    
    MyUser getusername(String username);
    
    MyUser getname(MyUser myuser);
    
    int updateUser(MyUser user);
    
    MyUser getOneUser(int id);
    
    List<MyUser> genderAllUser(String Fgender);
    
    List<MyUser> listUser();
}